import { STORE_KEY } from '@/constants/index'

var cacheData = {}

export function getAuthToken() {
  if (cacheData[STORE_KEY.userToken]) return cacheData[STORE_KEY.userToken]
  return localStorage.getItem(STORE_KEY.userToken)
}

export function setAuthToken(token) {
  return localStorage.setItem(STORE_KEY.userToken, token)
}

